package com.ruoyi.project.reportSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.reportSystem.mapper.WaiqingRecordMapper;
import com.ruoyi.project.reportSystem.domain.WaiqingRecord;
import com.ruoyi.project.reportSystem.service.IWaiqingRecordService;

/**
 * 外勤打卡Service业务层处理
 * 
 * @author wangshuo
 * @date 2021-03-16
 */
@Service
public class WaiqingRecordServiceImpl implements IWaiqingRecordService 
{
    @Autowired
    private WaiqingRecordMapper waiqingRecordMapper;

    /**
     * 查询外勤打卡
     * 
     * @param id 外勤打卡ID
     * @return 外勤打卡
     */
    @Override
    public WaiqingRecord selectWaiqingRecordById(Long id)
    {
        return waiqingRecordMapper.selectWaiqingRecordById(id);
    }

    /**
     * 查询外勤打卡列表
     * 
     * @param waiqingRecord 外勤打卡
     * @return 外勤打卡
     */
    @Override
    public List<WaiqingRecord> selectWaiqingRecordList(WaiqingRecord waiqingRecord)
    {
        return waiqingRecordMapper.selectWaiqingRecordList(waiqingRecord);
    }

    /**
     * 新增外勤打卡
     * 
     * @param waiqingRecord 外勤打卡
     * @return 结果
     */
    @Override
    public int insertWaiqingRecord(WaiqingRecord waiqingRecord)
    {
        return waiqingRecordMapper.insertWaiqingRecord(waiqingRecord);
    }

    /**
     * 修改外勤打卡
     * 
     * @param waiqingRecord 外勤打卡
     * @return 结果
     */
    @Override
    public int updateWaiqingRecord(WaiqingRecord waiqingRecord)
    {
        return waiqingRecordMapper.updateWaiqingRecord(waiqingRecord);
    }

    /**
     * 批量删除外勤打卡
     * 
     * @param ids 需要删除的外勤打卡ID
     * @return 结果
     */
    @Override
    public int deleteWaiqingRecordByIds(Long[] ids)
    {
        return waiqingRecordMapper.deleteWaiqingRecordByIds(ids);
    }

    /**
     * 删除外勤打卡信息
     * 
     * @param id 外勤打卡ID
     * @return 结果
     */
    @Override
    public int deleteWaiqingRecordById(Long id)
    {
        return waiqingRecordMapper.deleteWaiqingRecordById(id);
    }

    @Override
    public List<WaiqingRecord> selectWaiqingRecordimageList(WaiqingRecord waiqingRecord) {

        return waiqingRecordMapper.selectWaiqingRecordimageList(waiqingRecord);
    }
}
